import processor

blankStatements = ["Your silence speaks volumes.", "Type louder please!", "You must be the strong silent type."]
invalidStatements = ["Can you elaborate on that?", "I just don't understand you.", "That went over my head!", "No comprende!"]

class Failed(object):
    def __init__(self):
        self.blankIndex = 0
        self.invalidIndex = 0
    def process(self, command):
        r = ""
        if not len(command):
            r = blankStatements[self.blankIndex]
            self.blankIndex = (self.blankIndex + 1) % len(blankStatements)
        else:
            r = invalidStatements[self.invalidIndex]
            self.invalidIndex = (self.invalidIndex + 1) % len(invalidStatements)
        return r

processor.commands.append(Failed())